package com.allen.library.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class PostBean implements Parcelable {
    public int FunId;

    public String jsonString;

    public PostBean(int funId, String jsonString) {
        FunId = funId;
        this.jsonString = jsonString;
    }

    public int getFunId() {
        return FunId;
    }

    public void setFunId(int funId) {
        FunId = funId;
    }

    public String getJsonString() {
        return jsonString;
    }

    public void setJsonString(String jsonString) {
        this.jsonString = jsonString;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.FunId);
        dest.writeString(this.jsonString);
    }

    protected PostBean(Parcel in) {
        this.FunId = in.readInt();
        this.jsonString = in.readString();
    }

    public static final Parcelable.Creator<PostBean> CREATOR = new Parcelable.Creator<PostBean>() {
        @Override
        public PostBean createFromParcel(Parcel source) {
            return new PostBean(source);
        }

        @Override
        public PostBean[] newArray(int size) {
            return new PostBean[size];
        }
    };
}
